﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Main
{
    public partial class Form1 : WCSWaitForm.BaseForm
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.ShowWaitForm();

            for (int i = 0; i < 5; i++)
            {
                Label lbl = new Label();
                lbl.Name = "lbl" + i;
                lbl.Text = "lbl" + i;
                lbl.Dock = DockStyle.Top;
                this.Controls.Add(lbl);
                System.Threading.Thread.Sleep(1000);
            }

            this.CloseWaitForm();
        }
        
    }
}
